package com.shukuang.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
public class DemoController {
    @GetMapping("/")
    public String index(){
        SimpleDateFormat sdf  =   new SimpleDateFormat( " yyyy-MM-dd HH:mm:ss " );
        String datestr = sdf.format( new Date());
        return "Hello Jenkins " + datestr;
    }
}
